#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int n = 0;
    int arr[1001];
    scanf("%d", &n);
    for (int i = 0; i < n; i++)
    {
        scanf("%d", &arr[i]);
    }
    int arr1[1001];
    for (int i = 0; i < n; i++)
    {
        arr1[i] = arr[i];
        for (int j = 0; j < i; j++)
        {
            if (arr[i] == arr1[j])
            {
                arr1[i] = 0;
            }
        }
    }
    for (int i = 0; i < n; i++)
    {
        if (arr1[i] != 0)
        {
            printf("%d ", arr1[i]);
        }
    }
    return 0;
}